package org.jeecg.modules.htxincailiao.industry.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.htxincailiao.industry.entity.HTIndustryMeetingApply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: ht_industry_meeting_apply
 * @Author: jeecg-boot
 * @Date:   2021-06-05
 * @Version: V1.0
 */
public interface HTIndustryMeetingApplyMapper extends BaseMapper<HTIndustryMeetingApply> {
        @Select("<script>" +
                    "SELECT * FROM ht_industry_meeting_apply " +
                    "WHERE meeting_id=#{meetingId}" +
                    "</script>")
        HTIndustryMeetingApply queryByMeetingId(@Param("meetingId") String meetingId);

        @Select("<script>" +
                    "SELECT * FROM ht_industry_meeting_apply " +
                    "WHERE apply_user_id=#{userId} AND meeting_id=#{meetingId} AND apply_object_type=#{applyObjectType}" +
                    "</script>")
        HTIndustryMeetingApply queryBy(@Param("userId") String userId, @Param("meetingId") String meetingId,  @Param("applyObjectType") Integer applyObjectType);
}
